<?php
include "lang.php";
include "../service/serviceService.php";

$url = ($_SERVER['REQUEST_URI']);
if (!preg_match('/^id=[1-4]*$/', substr($url, strrpos($url, "?") + 1, strlen($url))))
    echo "<script>window.location.href='index.php';</script>";

$serviceId = $_GET["id"];
$result = findBy($serviceId, $_SESSION["lang"]);
$row = ConnectionManager::getInstance()->fetch($result);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <?php include "import.php"; ?>
        <title><?php echo mb_strtoupper($row["SEV_TITLE_" . $_SESSION["lang"]], "UTF-8"); ?></title>
    </head>
    <body>
        <?php include("floating-panel.php"); ?>
        <div class="wrapper">
            <?php include("header.php"); ?>  
            <div class="main_body">
                <div class="content_box_header">
                    <a href="service.php" class="back_button"><img src="../images/layout/back_button.png" width="34" height="24"/></a> 
                    <?php echo mb_strtoupper($row["SEV_TITLE_" . $_SESSION["lang"]], "UTF-8"); ?>
                </div>
                <div class="content_box">
                    <?php
                    echo $row["SEV_CONTENT_" . $_SESSION["lang"]];
                    ?>
                </div>
            </div>
        </div>
        <?php include("footer.php"); ?>
    </body>
</html>
